pub struct WebTag(/* private fields */);Expand description
WebView identifier combining appid, path, and optional session id.
Example: appid:path#123.
Implementations§
Source§impl WebTag
impl WebTag
pub fn new(appid: &str, path: &str, session_id: Option<u64>) -> Self
pub fn as_str(&self) -> &str
Sourcepub fn key(&self) -> &str
pub fn key(&self) -> &str
Storage key for this tag.
This preserves the optional #session suffix so instances are isolated
per runtime session.
Sourcepub fn extract_appid(&self) -> String
pub fn extract_appid(&self) -> String
Extract appid from the webtag
Sourcepub fn extract_parts(&self) -> (String, String)
pub fn extract_parts(&self) -> (String, String)
Extract appid and path from WebTag This will always succeed since WebTag is constructed with a valid format
Sourcepub fn session_id(&self) -> Option<u64>
pub fn session_id(&self) -> Option<u64>
Extract session id (if present) from the webtag
Trait Implementations§
impl Eq for WebTag
impl StructuralPartialEq for WebTag
Auto Trait Implementations§
impl Freeze for WebTag
impl RefUnwindSafe for WebTag
impl Send for WebTag
impl Sync for WebTag
impl Unpin for WebTag
impl UnsafeUnpin for WebTag
impl UnwindSafe for WebTag
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