pub struct ValidatedConnectionProfile(/* private fields */);Implementations§
Source§impl ValidatedConnectionProfile
impl ValidatedConnectionProfile
pub fn new(profile: WireConnectionProfile) -> Result<Self, ClientConfigError>
pub fn decode_current(bytes: &[u8]) -> Result<Self, ClientConfigError>
pub fn encode_current(&self) -> Result<Vec<u8>, ClientConfigError>
pub const fn as_wire(&self) -> &WireConnectionProfile
pub fn profile_generation(&self) -> u64
pub fn compare_and_swap( current: Option<&Self>, expected_generation: u64, replacement: &Self, ) -> Result<(), ClientConfigError>
Trait Implementations§
Source§impl Clone for ValidatedConnectionProfile
impl Clone for ValidatedConnectionProfile
Source§impl Debug for ValidatedConnectionProfile
impl Debug for ValidatedConnectionProfile
impl StructuralPartialEq for ValidatedConnectionProfile
Auto Trait Implementations§
impl Freeze for ValidatedConnectionProfile
impl RefUnwindSafe for ValidatedConnectionProfile
impl Send for ValidatedConnectionProfile
impl Sync for ValidatedConnectionProfile
impl Unpin for ValidatedConnectionProfile
impl UnsafeUnpin for ValidatedConnectionProfile
impl UnwindSafe for ValidatedConnectionProfile
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request