pub enum ChannelError {
InvalidSignature {
expected: u64,
actual: u64,
},
IncompatibleVersion {
expected: u64,
actual: u64,
},
InvalidCapacity {
capacity: u32,
msg: &'static str,
},
InvalidMaxMessageLength {
msg_len: u32,
msg: &'static str,
},
StorageNotFound {
file_name: String,
},
StorageNotReady {
file_name: String,
},
StorageAlreadyExists {
file_name: String,
},
CouldNotAccessStorage {
file_name: String,
},
MemoryMappingFailed {
reason: String,
},
AccessError {
reason: String,
},
}
Expand description
Channel Access errors
Variants§
InvalidSignature
The channel has an invalid signature. The channel signature must be 0x2A54_4942_4B45_4B2A
Fields
IncompatibleVersion
The channel’s storage is of an incompatible file format
InvalidCapacity
The channel’s capacity is invalid. Either too small or is not aligned to 8 bytes.
InvalidMaxMessageLength
The maximum message length specified is invalid
Fields
StorageNotFound
The channel storage does not exist
StorageNotReady
The channel storage is not ready to access
StorageAlreadyExists
The channel storage is not ready to access
CouldNotAccessStorage
The channel storage can’t be accessed
MemoryMappingFailed
Mapping the channel’s file to memory had failed
AccessError
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ChannelError
impl RefUnwindSafe for ChannelError
impl Send for ChannelError
impl Sync for ChannelError
impl Unpin for ChannelError
impl UnwindSafe for ChannelError
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