Struct dittolive_ditto::identity::Manual
source · [−]pub struct Manual { /* private fields */ }
Expand description
An identity where devices are manually configured with a x509 certificate bundle
Implementations
sourceimpl Manual
impl Manual
sourcepub fn new(certificate_config_b64: &str) -> Result<Self, DittoError>
pub fn new(certificate_config_b64: &str) -> Result<Self, DittoError>
Construct a Manual
identity.
ditto_root
: DittoRoot instance indicating local storage directorycertificate_config_b64
: A valid configuration of a x509 PKI Client Certificate Chain, Private Key, and other Identity data which identifies this instance of this app to other peers and allows for a TLS session to be established. This bundle should be provided as a single Base64 encoded string
Auto Trait Implementations
impl !RefUnwindSafe for Manual
impl Send for Manual
impl Sync for Manual
impl Unpin for Manual
impl !UnwindSafe for Manual
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more