pub struct RoomStringError {
pub len: usize,
pub max: usize,
}Expand description
Error returned when a RoomName or PermissionString exceeds the
allowed byte length.
Fields§
§len: usizeActual byte length of the rejected string.
max: usizeMaximum allowed byte length (MAX_ROOM_STRING_BYTES).
Trait Implementations§
Source§impl Clone for RoomStringError
impl Clone for RoomStringError
Source§fn clone(&self) -> RoomStringError
fn clone(&self) -> RoomStringError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RoomStringError
impl Debug for RoomStringError
Source§impl Display for RoomStringError
impl Display for RoomStringError
Source§impl Error for RoomStringError
impl Error for RoomStringError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for RoomStringError
impl PartialEq for RoomStringError
impl Eq for RoomStringError
impl StructuralPartialEq for RoomStringError
Auto Trait Implementations§
impl Freeze for RoomStringError
impl RefUnwindSafe for RoomStringError
impl Send for RoomStringError
impl Sync for RoomStringError
impl Unpin for RoomStringError
impl UnsafeUnpin for RoomStringError
impl UnwindSafe for RoomStringError
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