#[repr(C, packed(4))]pub struct TcfT {
pub install: u64,
pub lastuse: u64,
pub expires: u64,
pub firstuse: u64,
}Available on crate feature
tc only.Fields§
§install: u64§lastuse: u64§expires: u64§firstuse: u64Implementations§
Source§impl TcfT
impl TcfT
Sourcepub fn new_from_slice(other: &[u8]) -> Option<Self>
pub fn new_from_slice(other: &[u8]) -> Option<Self>
Copy from contents from slice
Sourcepub fn new_from_zeroed(other: &[u8]) -> Self
pub fn new_from_zeroed(other: &[u8]) -> Self
Copy from contents from another slice, padding with zeros or truncating when needed
pub fn new_from_array(buf: [u8; 32]) -> Self
pub fn as_slice(&self) -> &[u8] ⓘ
pub fn from_slice(buf: &[u8]) -> &Self
pub fn as_array(&self) -> &[u8; 32]
pub fn from_array(buf: &[u8; 32]) -> &Self
pub fn into_array(self) -> [u8; 32]
pub const fn len() -> usize
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TcfT
impl RefUnwindSafe for TcfT
impl Send for TcfT
impl Sync for TcfT
impl Unpin for TcfT
impl UnsafeUnpin for TcfT
impl UnwindSafe for TcfT
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