pub struct Der { /* private fields */ }
Implementations§
Trait Implementations§
source§impl Builder for Der
impl Builder for Der
source§fn push_boolean(&mut self, tag: &Tag, val: &Value<bool>) -> Result<()>
fn push_boolean(&mut self, tag: &Tag, val: &Value<bool>) -> Result<()>
Push a tagged boolean into the ASN1 output.
source§fn push_integer(
&mut self,
_name_hint: Option<String>,
tag: &Tag,
val: &Value<BigUint>
) -> Result<()>
fn push_integer( &mut self, _name_hint: Option<String>, tag: &Tag, val: &Value<BigUint> ) -> Result<()>
Push a tagged integer into the ASN1 output. The name hint can be used by the implementation for documentation purpose, or completely ignored.
source§fn push_integer_pad(
&mut self,
_name_hint: Option<String>,
val: &Value<BigUint>,
size: usize
) -> Result<()>
fn push_integer_pad( &mut self, _name_hint: Option<String>, val: &Value<BigUint>, size: usize ) -> Result<()>
Push a byte array into the ASN1 output, representing an integer. If the provided buffer is smaller than the provided size, it will be padded with zeroes. Note that this function does not add a tag to the ASN1 output.
source§fn push_byte_array(
&mut self,
_name_hint: Option<String>,
val: &Value<Vec<u8>>
) -> Result<()>
fn push_byte_array( &mut self, _name_hint: Option<String>, val: &Value<Vec<u8>> ) -> Result<()>
Push a byte array of fixed length into the ASN1 output. Note that this function does not add a tag to the ASN1 output.
source§fn push_string(
&mut self,
_name_hint: Option<String>,
str_type: &Tag,
val: &Value<String>
) -> Result<()>
fn push_string( &mut self, _name_hint: Option<String>, str_type: &Tag, val: &Value<String> ) -> Result<()>
Push a tagged string into the ASN1 output.
source§fn push_oid(&mut self, oid: &Oid) -> Result<()>
fn push_oid(&mut self, oid: &Oid) -> Result<()>
Push a tagged object identifier into the ASN1 output.
source§fn push_tag(
&mut self,
_name_hint: Option<String>,
tag: &Tag,
gen: impl FnOnce(&mut Self) -> Result<()>
) -> Result<()>
fn push_tag( &mut self, _name_hint: Option<String>, tag: &Tag, gen: impl FnOnce(&mut Self) -> Result<()> ) -> Result<()>
Push tagged content into the ASN1 output. The closure can use any available function of the builder and produces the content of the tagged data.
fn push_bitstring( &mut self, name_hint: Option<String>, tag: &Tag, bits: &[Value<bool>] ) -> Result<()>
source§fn push_octet_string(
&mut self,
name_hint: Option<String>,
gen: impl FnOnce(&mut Self) -> Result<()>
) -> Result<()>
fn push_octet_string( &mut self, name_hint: Option<String>, gen: impl FnOnce(&mut Self) -> Result<()> ) -> Result<()>
source§fn push_seq(
&mut self,
name_hint: Option<String>,
gen: impl FnOnce(&mut Self) -> Result<()>
) -> Result<()>
fn push_seq( &mut self, name_hint: Option<String>, gen: impl FnOnce(&mut Self) -> Result<()> ) -> Result<()>
source§fn push_set(
&mut self,
name_hint: Option<String>,
gen: impl FnOnce(&mut Self) -> Result<()>
) -> Result<()>
fn push_set( &mut self, name_hint: Option<String>, gen: impl FnOnce(&mut Self) -> Result<()> ) -> Result<()>
source§fn push_as_bit_string(
&mut self,
name_hint: Option<String>,
tag: &Tag,
unused_bits: usize,
gen: impl FnOnce(&mut Self) -> Result<()>
) -> Result<()>
fn push_as_bit_string( &mut self, name_hint: Option<String>, tag: &Tag, unused_bits: usize, gen: impl FnOnce(&mut Self) -> Result<()> ) -> Result<()>
Auto Trait Implementations§
impl RefUnwindSafe for Der
impl Send for Der
impl Sync for Der
impl Unpin for Der
impl UnwindSafe for Der
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where
F: FnOnce(&Self) -> bool,
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>where F: FnOnce(&Self) -> bool,
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more