pub struct OwnedEntrypointName(/* private fields */);
Expand description
An entrypoint name (owned version). Expected format:
“<func_name>”. Most methods on this type are available via the
as_entrypoint_name
and the
methods on the EntrypointName
type.
Implementations§
Source§impl OwnedEntrypointName
impl OwnedEntrypointName
Sourcepub fn new(name: String) -> Result<OwnedEntrypointName, NewReceiveNameError>
pub fn new(name: String) -> Result<OwnedEntrypointName, NewReceiveNameError>
Create a new name and check the format. See is_valid_entrypoint_name for the expected format.
Sourcepub const fn new_unchecked(name: String) -> OwnedEntrypointName
pub const fn new_unchecked(name: String) -> OwnedEntrypointName
Create a new name. This does not check the format and is therefore unsafe. It is provided for convenience since sometimes it is statically clear that the format is satisfied.
Sourcepub fn as_entrypoint_name(&self) -> EntrypointName<'_>
pub fn as_entrypoint_name(&self) -> EntrypointName<'_>
Convert to an EntrypointName
by reference.
Trait Implementations§
Source§impl Clone for OwnedEntrypointName
impl Clone for OwnedEntrypointName
Source§fn clone(&self) -> OwnedEntrypointName
fn clone(&self) -> OwnedEntrypointName
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 OwnedEntrypointName
impl Debug for OwnedEntrypointName
Source§impl Deserial for OwnedEntrypointName
impl Deserial for OwnedEntrypointName
Source§fn deserial<R>(source: &mut R) -> Result<OwnedEntrypointName, ParseError>where
R: Read,
fn deserial<R>(source: &mut R) -> Result<OwnedEntrypointName, ParseError>where
R: Read,
Attempt to read a structure from a given source, failing if an error
occurs during deserialization or reading.
Source§impl Display for OwnedEntrypointName
impl Display for OwnedEntrypointName
Source§impl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
impl<'a> From<EntrypointName<'a>> for OwnedEntrypointName
Source§fn from(epn: EntrypointName<'a>) -> OwnedEntrypointName
fn from(epn: EntrypointName<'a>) -> OwnedEntrypointName
Converts to this type from the input type.
Source§impl From<OwnedEntrypointName> for String
impl From<OwnedEntrypointName> for String
Source§fn from(oen: OwnedEntrypointName) -> String
fn from(oen: OwnedEntrypointName) -> String
Converts to this type from the input type.
Source§impl Hash for OwnedEntrypointName
impl Hash for OwnedEntrypointName
Source§impl Ord for OwnedEntrypointName
impl Ord for OwnedEntrypointName
Source§fn cmp(&self, other: &OwnedEntrypointName) -> Ordering
fn cmp(&self, other: &OwnedEntrypointName) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<'a> PartialEq<&'a str> for OwnedEntrypointName
impl<'a> PartialEq<&'a str> for OwnedEntrypointName
Source§impl PartialEq<str> for OwnedEntrypointName
impl PartialEq<str> for OwnedEntrypointName
Source§impl PartialEq for OwnedEntrypointName
impl PartialEq for OwnedEntrypointName
Source§impl PartialOrd for OwnedEntrypointName
impl PartialOrd for OwnedEntrypointName
Source§impl SchemaType for OwnedEntrypointName
impl SchemaType for OwnedEntrypointName
Source§impl Serial for OwnedEntrypointName
impl Serial for OwnedEntrypointName
Source§impl TryFrom<String> for OwnedEntrypointName
impl TryFrom<String> for OwnedEntrypointName
Source§type Error = NewReceiveNameError
type Error = NewReceiveNameError
The type returned in the event of a conversion error.
Source§fn try_from(
value: String,
) -> Result<OwnedEntrypointName, <OwnedEntrypointName as TryFrom<String>>::Error>
fn try_from( value: String, ) -> Result<OwnedEntrypointName, <OwnedEntrypointName as TryFrom<String>>::Error>
Performs the conversion.
impl Eq for OwnedEntrypointName
impl StructuralPartialEq for OwnedEntrypointName
Auto Trait Implementations§
impl Freeze for OwnedEntrypointName
impl RefUnwindSafe for OwnedEntrypointName
impl Send for OwnedEntrypointName
impl Sync for OwnedEntrypointName
impl Unpin for OwnedEntrypointName
impl UnwindSafe for OwnedEntrypointName
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<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
impl<D, S> DeserialWithState<S> for Dwhere
D: Deserial,
S: HasStateApi,
Source§fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
fn deserial_with_state<R>(_state: &S, source: &mut R) -> Result<D, ParseError>where
R: Read,
Attempt to read a structure from a given source and state, failing if
an error occurs during deserialization or reading.