pub struct Protected { /* private fields */ }Implementations§
Source§impl Protected
impl Protected
pub fn new(extra_origins: &[&str]) -> Self
pub fn with_rules(rules: ProtectedOrigins, extra_origins: &[&str]) -> Self
pub fn refusal(&self) -> &str
pub fn refusal_for_url(&self, text: &str) -> &str
pub fn unparseable(&self, text: &str) -> bool
pub fn url(&self, text: &str) -> bool
pub fn resource_key(&self, text: &str) -> Option<String>
pub fn redaction_schemes(&self) -> impl Iterator<Item = &str>
pub fn url_read_only(&self, text: &str) -> bool
pub fn target_type(&self, kind: &str) -> bool
pub fn error_page_url(&self, document_url: &str) -> bool
pub fn error_document(&self, document_url: &str, origin: &str) -> bool
pub fn error_redaction(&self) -> bool
pub fn target(&self, text: &str, previous: bool, opener: Opener) -> bool
pub fn target_with_document( &self, text: &str, previous: bool, opener: Opener, document_url: Option<&str>, unreachable_url: Option<&str>, navigating: bool, ) -> bool
pub fn storage_key(&self, key: &str) -> bool
pub fn pattern(&self, pattern: &str) -> bool
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Protected
impl RefUnwindSafe for Protected
impl Send for Protected
impl Sync for Protected
impl Unpin for Protected
impl UnsafeUnpin for Protected
impl UnwindSafe for Protected
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