[−][src]Struct rpki::x509::Serial
A certificate serial number.
Methods
impl Serial
[src]
pub fn from_slice(s: &[u8]) -> Result<Self, Error>
[src]
Creates a serial number from a octet slice.
pub fn random<S: Signer>(signer: &S) -> Result<Self, S::Error>
[src]
Creates a random new serial number.
pub fn short_random<S: Signer>(signer: &S, len: usize) -> Result<Self, S::Error>
[src]
Creates a random serial number of a given length.
The len
argument provides the number of octets (!) of randomness
the serial should have.
Panics
The function panics if len
is more than 20.
pub fn take_from<S: Source>(cons: &mut Constructed<S>) -> Result<Self, S::Err>
[src]
Trait Implementations
impl From<u128> for Serial
[src]
impl From<u64> for Serial
[src]
impl From<Serial> for String
[src]
impl Clone for Serial
[src]
impl Copy for Serial
[src]
impl Default for Serial
[src]
impl Eq for Serial
[src]
impl Ord for Serial
[src]
fn cmp(&self, other: &Serial) -> Ordering
[src]
fn max(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
1.21.0[src]
fn clamp(self, min: Self, max: Self) -> Self
[src]
impl PartialEq<Serial> for Serial
[src]
impl PartialOrd<Serial> for Serial
[src]
fn partial_cmp(&self, other: &Serial) -> Option<Ordering>
[src]
fn lt(&self, other: &Serial) -> bool
[src]
fn le(&self, other: &Serial) -> bool
[src]
fn gt(&self, other: &Serial) -> bool
[src]
fn ge(&self, other: &Serial) -> bool
[src]
impl Display for Serial
[src]
impl Debug for Serial
[src]
impl FromStr for Serial
[src]
type Err = RepresentationError
The associated error which can be returned from parsing.
fn from_str(value: &str) -> Result<Self, Self::Err>
[src]
impl Hash for Serial
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl StructuralPartialEq for Serial
[src]
impl StructuralEq for Serial
[src]
impl PrimitiveContent for Serial
[src]
const TAG: Tag
[src]
fn encoded_len(&self, _mode: Mode) -> usize
[src]
fn write_encoded<W: Write>(
&self,
_mode: Mode,
target: &mut W
) -> Result<(), Error>
[src]
&self,
_mode: Mode,
target: &mut W
) -> Result<(), Error>
fn to_encoded_bytes(&self, mode: Mode) -> Bytes
[src]
fn encode(self) -> Primitive<Self>
[src]
fn encode_as(self, tag: Tag) -> Primitive<Self>
[src]
fn encode_ref(&self) -> Primitive<&Self>
[src]
fn encode_ref_as(&self, tag: Tag) -> Primitive<&Self>
[src]
impl Serialize for Serial
[src]
impl<'de> Deserialize<'de> for Serial
[src]
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
[src]
Auto Trait Implementations
impl Send for Serial
impl Sync for Serial
impl Unpin for Serial
impl UnwindSafe for Serial
impl RefUnwindSafe for Serial
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,