pub struct Session { /* private fields */ }Expand description
Resolved Octra session used by the raw client layer.
Implementations§
Source§impl Session
impl Session
pub fn target(&self) -> &DatabaseTarget
pub fn wallet_path(&self) -> Option<&Path>
pub fn wallet_load_error(&self) -> Option<&str>
pub fn rpc(&self) -> &str
pub fn caller(&self) -> &str
pub fn public_key_b64(&self) -> Result<&str>
pub fn with_database_target(&self, target: DatabaseTarget) -> Session
pub fn open_database(&self, target: impl Into<String>) -> Result<Session>
pub fn intent_public_key(&self) -> Result<[u8; 32]>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Session
impl RefUnwindSafe for Session
impl Send for Session
impl Sync for Session
impl Unpin for Session
impl UnsafeUnpin for Session
impl UnwindSafe for Session
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