pub struct Encoder { /* private fields */ }Implementations§
Source§impl Encoder
impl Encoder
pub fn new() -> Self
pub fn start_seq(&mut self, tag: u8) -> Result<()>
pub fn fix(&mut self)
pub fn end_seq(&mut self)
pub fn write_octet_string(&mut self, val: &[u8]) -> Result<()>
pub fn write_string(&mut self, val: &str) -> Result<()>
pub fn write_string_with_tag(&mut self, tag: u8, val: &str) -> Result<()>
pub fn write_octet_string_with_tag(&mut self, tag: u8, val: &[u8]) -> Result<()>
pub fn write_enum(&mut self, val: u8) -> Result<()>
pub fn write_int(&mut self, val: u32) -> Result<()>
pub fn write_bool(&mut self, val: bool) -> Result<()>
pub fn write_raw(&mut self, data: &[u8])
pub fn write_oid(&mut self, val: &str) -> Result<()>
pub fn encode(self) -> Vec<u8> ⓘ
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Encoder
impl RefUnwindSafe for Encoder
impl Send for Encoder
impl Sync for Encoder
impl Unpin for Encoder
impl UnwindSafe for Encoder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more