[−][src]Struct koibumi_core::object::Header
The header structure of Bitmessage objects.
Implementations
impl Header[src]
pub fn new(
expires_time: Time,
object_type: ObjectType,
version: ObjectVersion,
stream_number: StreamNumber
) -> Self[src]
expires_time: Time,
object_type: ObjectType,
version: ObjectVersion,
stream_number: StreamNumber
) -> Self
Constructs an object header from the specified parameters.
pub fn expires_time(&self) -> Time[src]
Returns the expires time.
pub fn object_type(&self) -> ObjectType[src]
Returns the object type.
pub fn version(&self) -> ObjectVersion[src]
Returns the object version.
pub fn stream_number(&self) -> StreamNumber[src]
Returns the stream number.
Trait Implementations
impl Clone for Header[src]
impl Debug for Header[src]
impl Eq for Header[src]
impl Hash for Header[src]
pub fn hash<__H: Hasher>(&self, state: &mut __H)[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl LenBm for Header[src]
impl Ord for Header[src]
pub fn cmp(&self, other: &Header) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Header> for Header[src]
impl PartialOrd<Header> for Header[src]
pub fn partial_cmp(&self, other: &Header) -> Option<Ordering>[src]
pub fn lt(&self, other: &Header) -> bool[src]
pub fn le(&self, other: &Header) -> bool[src]
pub fn gt(&self, other: &Header) -> bool[src]
pub fn ge(&self, other: &Header) -> bool[src]
impl ReadFrom for Header[src]
impl StructuralEq for Header[src]
impl StructuralPartialEq for Header[src]
impl WriteTo for Header[src]
Auto Trait Implementations
impl RefUnwindSafe for Header[src]
impl Send for Header[src]
impl Sync for Header[src]
impl Unpin for Header[src]
impl UnwindSafe for Header[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ReadFromExact for T where
T: ReadFrom, [src]
T: ReadFrom,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
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.
pub 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>,