pub struct Header { /* private fields */ }Expand description
The header structure of Bitmessage objects.
Implementations§
Source§impl Header
impl Header
Sourcepub fn new(
expires_time: Time,
object_type: ObjectType,
version: ObjectVersion,
stream_number: StreamNumber,
) -> Self
pub fn new( expires_time: Time, object_type: ObjectType, version: ObjectVersion, stream_number: StreamNumber, ) -> Self
Constructs an object header from the specified parameters.
Sourcepub fn expires_time(&self) -> Time
pub fn expires_time(&self) -> Time
Returns the expires time.
Sourcepub fn object_type(&self) -> ObjectType
pub fn object_type(&self) -> ObjectType
Returns the object type.
Sourcepub fn version(&self) -> ObjectVersion
pub fn version(&self) -> ObjectVersion
Returns the object version.
Sourcepub fn stream_number(&self) -> StreamNumber
pub fn stream_number(&self) -> StreamNumber
Returns the stream number.
Trait Implementations§
Source§impl Ord for Header
impl Ord for Header
Source§impl PartialOrd for Header
impl PartialOrd for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl Freeze for Header
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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