pub struct DebugGoalName(/* private fields */);Expand description
A goal-selector name limited to 255 UTF-16 code units.
Implementations§
Source§impl DebugGoalName
impl DebugGoalName
Sourcepub const MAX_UTF16_CODE_UNITS: usize = 255
pub const MAX_UTF16_CODE_UNITS: usize = 255
Maximum number of UTF-16 code units permitted by the protocol.
Sourcepub fn new(value: impl Into<String>) -> Result<Self, DebugGoalNameTooLong>
pub fn new(value: impl Into<String>) -> Result<Self, DebugGoalNameTooLong>
Creates a validated goal-selector name.
Sourcepub fn into_inner(self) -> String
pub fn into_inner(self) -> String
Extracts the owned string.
Trait Implementations§
Source§impl AsRef<str> for DebugGoalName
impl AsRef<str> for DebugGoalName
Source§impl Clone for DebugGoalName
impl Clone for DebugGoalName
Source§fn clone(&self) -> DebugGoalName
fn clone(&self) -> DebugGoalName
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 DebugGoalName
impl Debug for DebugGoalName
Source§impl Default for DebugGoalName
impl Default for DebugGoalName
Source§fn default() -> DebugGoalName
fn default() -> DebugGoalName
Returns the “default value” for a type. Read more
Source§impl Display for DebugGoalName
impl Display for DebugGoalName
impl Eq for DebugGoalName
Source§impl From<DebugGoalName> for String
impl From<DebugGoalName> for String
Source§fn from(value: DebugGoalName) -> Self
fn from(value: DebugGoalName) -> Self
Converts to this type from the input type.
Source§impl Hash for DebugGoalName
impl Hash for DebugGoalName
Source§impl PartialEq for DebugGoalName
impl PartialEq for DebugGoalName
impl StructuralPartialEq for DebugGoalName
Source§impl TryFrom<&str> for DebugGoalName
impl TryFrom<&str> for DebugGoalName
Source§impl TryFrom<String> for DebugGoalName
impl TryFrom<String> for DebugGoalName
Auto Trait Implementations§
impl Freeze for DebugGoalName
impl RefUnwindSafe for DebugGoalName
impl Send for DebugGoalName
impl Sync for DebugGoalName
impl Unpin for DebugGoalName
impl UnsafeUnpin for DebugGoalName
impl UnwindSafe for DebugGoalName
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ContextualCodec for Twhere
T: TypeCodec,
impl<T> ContextualCodec for Twhere
T: TypeCodec,
Source§fn encode_with_context(
&self,
writer: &mut impl Write,
_context: &Context,
) -> Result<(), CodecError>
fn encode_with_context( &self, writer: &mut impl Write, _context: &Context, ) -> Result<(), CodecError>
Encodes this value using context supplied by its enclosing structure.
Source§fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
fn decode_with_context(
reader: &mut impl Read,
_context: &Context,
) -> Result<T, CodecError>where
T: Sized,
Decodes this value using context supplied by its enclosing structure.